package com.test;

public class Ex1_dto {
	

	int total;
		
	public void total(int a){
	    total=0;
		for(int n=1; n<=a; n++){
			total+=n;
			}//end for
		
		}//end total
		
	public int getTotal(){
		return total;
		}
		
		
	}//end class
	
	


